import React, { useState } from "react";
import { Button, Flex, Layout } from "antd";
import { useNavigate } from "react-router-dom";
const Index: React.FC = () => {
  const navigate=useNavigate()
  const tc=()=>{
    localStorage.removeItem("token")
    localStorage.removeItem("row")
    localStorage.removeItem("user")
    localStorage.removeItem("info")
    navigate('/login')
  }
  return <div>
  <Button className="tc" type="primary" danger onClick={()=>tc()}>退出</Button>
  </div>;
};
export default Index;
